<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <title>八维贷</title>
    <script src="https://unpkg.com/vue@2.6.14/dist/vue.min.js"></script>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
</head>
<body>

<div id="app">
    <center>
        <hr>
        <div align="right">
            欢迎{{mobile}},<a @click="logout">退出</a>
        </div>
        <hr>
        <img src="logo.png" width="60%">
        <hr>














        <div style="width: 100%;position: absolute;bottom: 0">
            <hr>
            www.bwyjs.com @
            云计算1810A
            <hr>
        </div>
    </center>
</div>
<script>
    new Vue({
        el:'#app',
        data() {
            return {
                mobile:''
            };
        },
        methods: {
            logout(){
                localStorage.removeItem("mobile")
                location.href="index.html"
            }
        },
        created(){
            this.mobile = localStorage.getItem("mobile");
            if(this.mobile==undefined){
                location.href="index.html"
            }
        }
    })
</script>
</body>
</html>